package cn.flexui.flexuiserver.service;

import cn.flexui.flexuiserver.domain.constant.AccountConts;
import cn.flexui.flexuiserver.domain.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 账户表 服务类
 * </p>
 *
 * @author apeto
 * @since 2024-09-22 01:57:56
 */
public interface AccountService extends IService<Account> {
    Account getByUserIdAndType(Long userId, Integer accountType);

    List<Account> getByUserId(Long userId);

    Account commonUpdateAccount(Long userId, Integer accountType, BigDecimal changeAmount, String reqId,
                                String outsideCode, AccountConts.LogDescriptionTypeEnum logDescriptionTypeEnum,
                                AccountConts.DirectionTypeEnum directionTypeEnum, String operatorName
    );

}
